package o;

import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupMenu;
import android.widget.PopupMenu.OnMenuItemClickListener;
import android.widget.PopupWindow;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.huawei.appgallery.forum.base.card.bean.Post;
import com.huawei.appgallery.forum.base.card.bean.Section;
import com.huawei.appgallery.forum.base.card.bean.User;
import com.huawei.appgallery.forum.base.card.bean.VideoInfo;
import com.huawei.appgallery.forum.base.ui.buoy.action.VideoNetChangeDialogAction;
import com.huawei.appgallery.forum.posts.api.ForumPostDetailWindow$12;
import com.huawei.appgallery.forum.posts.buoy.action.OpenDeletePostAction;
import com.huawei.appgallery.forum.posts.buoy.action.OpenExpansionPostAction;
import com.huawei.appgallery.forum.posts.buoy.action.OpenReportPostAction;
import com.huawei.appgallery.forum.posts.card.ForumPostDetailHeadCardBean;
import com.huawei.appgallery.forum.section.buoy.action.OpenPublishPostAction;
import com.huawei.appmarket.support.video.VideoPlayer;
import com.huawei.appmarket.support.video.fullscreen.FullScreenVideoPlayProtocol;
import com.huawei.appmarket.support.video.fullscreen.FullScreenVideoPlayProtocol.Request;
import com.huawei.gamebox.plugin.gameservice.view.TransferActivity;
import huawei.widget.HwButton;
import java.io.Serializable;
import java.util.List;

import o.bzd.e;
import o.bzd.f;
import o.bzd.g;
import o.bzd.h;
import o.bzd.j;

public class bzc extends brb implements OnClickListener, buk, bzi, bzk {
    private bgz ʻ;
    private Section ʻॱ;
    private Bundle ʼ;
    private int ʼॱ;
    private View ʽ;
    private User ʽॱ;
    private int ʾ;
    private String ʿ;
    private int ˈ;
    private int ˉ;
    private LinearLayout ˊˊ;
    private PopupWindow ˊˋ;
    private HwButton ˊॱ;
    private PopupMenu ˊᐝ;
    private bzg ˋ;
    private LayoutInflater ˋˊ;
    private ViewStub ˋˋ;
    private ImageView ˋॱ;
    private VideoPlayer ˋᐝ;
    private TextView ˌ;
    private String ˍ;
    private bwx ˎ;
    private View ˎˎ;
    protected long ˏ;
    private Handler ˏˏ;
    private ImageView ˏॱ;
    private TextView ͺ;
    private Class<? extends bgz> ॱ;
    private View ॱˊ;
    private View ॱˋ;
    private View ॱˎ;
    private View ॱॱ;
    private Post ॱᐝ;
    private View ᐝ;
    private String ᐝॱ;

    public interface a {
        void ˊ(boolean z);
    }

    static class b implements fjq<Boolean> {
        private final a ˎ;

        b(a aVar) {
            this.ˎ = aVar;
        }

        public void onComplete(fjo<Boolean> o_fjo_java_lang_Boolean) {
            boolean z;
            if (o_fjo_java_lang_Boolean.ˊ() && ((Boolean) o_fjo_java_lang_Boolean.ॱ()).booleanValue()) {
                z = true;
            } else {
                z = false;
            }
            bqx.ˏ("ForumPostDetailWindow", "check user result:" + z);
            if (this.ˎ != null) {
                this.ˎ.ˊ(z);
            }
        }
    }

    public bzc(Context context) {
        super(context);
        this.ˋ = null;
        this.ʼ = null;
        this.ˉ = -1;
        this.ˏˏ = new Handler(context.getMainLooper());
        this.ॱ = bzl.class;
    }

    public bzc() {
        this.ˋ = null;
        this.ʼ = null;
        this.ˉ = -1;
        this.ˏˏ = new Handler(this.ˊ.getMainLooper());
        this.ॱ = bzl.class;
    }

    public void ॱ(bzg o_bzg) {
        this.ˋ = o_bzg;
    }

    public void ˋ(@Nullable Bundle bundle) {
        super.ˋ(bundle);
        this.ʼ = bundle;
        this.ˎ = (bwx) fho.ˏ().ˋ("Operation").ॱ(bwx.class);
        this.ʼॱ = 1;
    }

    public View ˊ(int i) {
        if (this.ॱॱ == null) {
            return null;
        }
        return this.ॱॱ.findViewById(i);
    }

    public View ˏ() {
        if (this.ˊ == null) {
            bqx.ॱ("ForumPostDetailWindow", "onCreateView, context == null");
            return null;
        }
        if (this.ˋˊ == null) {
            this.ˋˊ = LayoutInflater.from(this.ˊ);
        }
        this.ॱॱ = this.ˋˊ.inflate(h.ʻॱ, null);
        this.ʻ = new o.bhi.b(this.ˊ).ˊ(this.ʼ).ˏ().ˎ(this.ॱ);
        if (this.ʻ instanceof bzl) {
            ((bzl) this.ʻ).ˏ(this);
            ((bzl) this.ʻ).ˊ((buk) this);
            ((bzl) this.ʻ).ˊ((bzk) this);
        }
        ᐝ().ˋ(o.bzd.b.ᶥ, this.ʻ, null);
        ॱᐝ();
        ॱˋ();
        return this.ॱॱ;
    }

    private void ॱᐝ() {
        this.ˋˋ = (ViewStub) this.ॱॱ.findViewById(o.bzd.b.ʼ);
        this.ॱॱ.findViewById(o.bzd.b.ʽ).setOnClickListener(this);
        this.ˌ = (TextView) this.ॱॱ.findViewById(o.bzd.b.ॱꓸ);
        this.ॱˋ = this.ॱॱ.findViewById(o.bzd.b.ㆍ);
        this.ॱˋ.setOnClickListener(this);
        this.ॱˎ = this.ॱॱ.findViewById(o.bzd.b.ˏˎ);
        this.ॱˎ.setOnClickListener(this);
    }

    private void ॱˋ() {
        this.ʽ = this.ॱॱ.findViewById(o.bzd.b.ʹ);
        this.ᐝ = this.ॱॱ.findViewById(o.bzd.b.ʼˋ);
        this.ᐝ.setOnClickListener(this);
        this.ˋॱ = (ImageView) this.ॱॱ.findViewById(o.bzd.b.ʻᐝ);
        this.ͺ = (TextView) this.ॱॱ.findViewById(o.bzd.b.ˋʼ);
        this.ॱˊ = this.ॱॱ.findViewById(o.bzd.b.ʻˋ);
        this.ॱˊ.setOnClickListener(this);
        this.ˏॱ = (ImageView) this.ॱॱ.findViewById(o.bzd.b.ʼˊ);
        this.ˊॱ = (HwButton) this.ॱॱ.findViewById(o.bzd.b.ﾞ);
        this.ˊॱ.setOnClickListener(this);
    }

    public int ˎ() {
        return this.ˉ;
    }

    public void ˏ(int i) {
        this.ˉ = i;
    }

    private void ॱˎ() {
        if (ʾ()) {
            ʿ();
            if (this.ˊˋ == null && this.ˊˊ != null) {
                this.ˊˋ = new PopupWindow(this.ˊˊ, -2, -2, false);
                if (this.ˊ.getResources().getBoolean(c.ˏ)) {
                    this.ˊˊ.setPadding(0, 0, 0, 0);
                } else {
                    this.ˊˊ.setPadding(0, 0, ˏ(this.ˊ, 52), 0);
                }
                this.ˊˋ.showAsDropDown(this.ॱˎ, 0, ˏ(this.ˊ, 4) * -1, 3);
                this.ˊˋ.setOutsideTouchable(true);
            }
        }
    }

    private boolean ʾ() {
        bsc ˋ = bsc.ˋ();
        if (!ˋ.ˏ()) {
            return false;
        }
        ˋ.ˊ(false);
        return true;
    }

    private void ʿ() {
        if (this.ˋˊ == null) {
            this.ˋˊ = LayoutInflater.from(this.ˊ);
        }
        if (this.ˋˊ.inflate(h.ͺ, null) instanceof LinearLayout) {
            this.ˊˊ = (LinearLayout) this.ˋˊ.inflate(h.ͺ, null);
        }
    }

    private int ˏ(Context context, int i) {
        return (int) ((context.getResources().getDisplayMetrics().density * ((float) i)) + 0.5f);
    }

    public void onClick(View view) {
        if (view.getId() == o.bzd.b.ʽ) {
            ((faj) cdb.ॱ(faj.class)).ˋ(this.ˊ, this);
        } else if (view.getId() == o.bzd.b.ㆍ) {
            this.ˊᐝ.show();
        } else if (view.getId() == o.bzd.b.ˏˎ) {
            ॱ(false);
        } else if (view.getId() == o.bzd.b.ﾞ) {
            if (ˋ(false)) {
                ॱ(true);
            }
        } else if (!ˋ(false)) {
        } else {
            if (view.getId() == o.bzd.b.ʼˋ) {
                ʽॱ();
            } else if (view.getId() == o.bzd.b.ʻˋ) {
                ˈ();
            }
        }
    }

    private void ॱ(boolean z) {
        Intent intent = new Intent(this.ˊ, TransferActivity.class);
        intent.setAction(OpenExpansionPostAction.ACTION_OPEN_FORUM_EXPANSION_POST);
        intent.putExtra("DomainId", this.ᐝॱ);
        intent.putExtra(OpenExpansionPostAction.BUNDLE_POST_DETAIL_ID, this.ʿ.substring(5));
        intent.putExtra(OpenExpansionPostAction.BUNDLE_IS_NEED_COMMENT, z);
        ((faj) cdb.ॱ(faj.class)).ˎ(this.ˊ, TransferActivity.class, intent, false);
    }

    private void ʽॱ() {
        if (this.ˎ != null) {
            this.ˎ.ˊ(this.ˊ, this.ॱᐝ.ॱˊ(), 0, this.ॱᐝ.ˏ(), this.ˈ == 1 ? 1 : 0, this.ᐝॱ, this.ʻॱ.ˊ(), true).ˏ(new fke<bxc>(this) {
                final /* synthetic */ bzc ˊ;

                {
                    this.ˊ = r1;
                }

                public void ˎ(fkg o_fkg) {
                }

                public void ॱ(bxc o_bxc) {
                    if (o_bxc.ˏ() == 9 && o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "AUTHENTION_ACCESS is ok");
                        this.ˊ.ʼॱ();
                    } else if (o_bxc.ˏ() == 0 && o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "response is ok");
                    } else if (o_bxc.ˏ() == -1 && !o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "response is fail");
                        this.ˊ.ʼॱ();
                    }
                }

                public void ˊ(Exception exception) {
                }

                public void ॱ() {
                }
            });
        }
    }

    private void ʼॱ() {
        this.ˏˏ.post(new Runnable(this) {
            final /* synthetic */ bzc ॱ;

            {
                this.ॱ = r1;
            }

            public void run() {
                if (this.ॱ.ˈ == 1) {
                    this.ॱ.ˈ = 0;
                    this.ॱ.ॱᐝ.ˋ(this.ॱ.ॱᐝ.ʻ() - 1);
                    this.ॱ.ˋॱ.setImageResource(e.ॱˊ);
                } else {
                    this.ॱ.ˈ = 1;
                    this.ॱ.ॱᐝ.ˋ(this.ॱ.ॱᐝ.ʻ() + 1);
                    this.ॱ.ˋॱ.setImageResource(e.ॱॱ);
                }
                this.ॱ.ˎ(this.ॱ.ॱᐝ.ʻ());
            }
        });
    }

    private void ˎ(long j) {
        if (j > 0) {
            this.ͺ.setVisibility(0);
            this.ͺ.setText(j > 999 ? "999+" : String.valueOf(j));
            return;
        }
        this.ͺ.setVisibility(8);
    }

    private void ˈ() {
        if (this.ˎ != null) {
            this.ˎ.ˋ(this.ˊ, this.ॱᐝ.ˏ(), this.ʾ == 1 ? 0 : 1, this.ᐝॱ, true).ˏ(new fke<bxc>(this) {
                final /* synthetic */ bzc ˊ;

                {
                    this.ˊ = r1;
                }

                public /* synthetic */ void ॱ(Object obj) {
                    ˎ((bxc) obj);
                }

                public void ˎ(fkg o_fkg) {
                }

                public void ˎ(bxc o_bxc) {
                    if (o_bxc.ˏ() == 9 && o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "AUTHENTION_ACCESS is ok");
                        this.ˊ.ˊˋ();
                    } else if (o_bxc.ˏ() == 0 && o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "response is ok");
                    } else if (o_bxc.ˏ() == -1 && !o_bxc.ˎ()) {
                        bqx.ˏ("ForumPostDetailWindow", "response is fail");
                        this.ˊ.ˊˋ();
                    }
                }

                public void ˊ(Exception exception) {
                }

                public void ॱ() {
                }
            });
        }
    }

    private void ˊˋ() {
        this.ˏˏ.post(new Runnable(this) {
            final /* synthetic */ bzc ˊ;

            {
                this.ˊ = r1;
            }

            public void run() {
                if (this.ˊ.ʾ == 1) {
                    this.ˊ.ʾ = 0;
                    this.ˊ.ˏॱ.setImageResource(e.ʼ);
                    return;
                }
                this.ˊ.ʾ = 1;
                this.ˊ.ˏॱ.setImageResource(e.ᐝ);
            }
        });
    }

    public void ॱ(ForumPostDetailHeadCardBean forumPostDetailHeadCardBean, String str, long j) {
        this.ᐝॱ = forumPostDetailHeadCardBean.ॱ();
        this.ʻॱ = forumPostDetailHeadCardBean.ʽ();
        this.ॱᐝ = forumPostDetailHeadCardBean.ᐝ();
        this.ʽॱ = forumPostDetailHeadCardBean.ʼ();
        this.ʾ = forumPostDetailHeadCardBean.ˏॱ();
        this.ˈ = forumPostDetailHeadCardBean.ͺ();
        this.ʿ = str;
        this.ˏ = j;
        this.ˏˏ.post(new Runnable(this) {
            final /* synthetic */ bzc ˎ;

            {
                this.ˎ = r1;
            }

            public void run() {
                this.ˎ.ˉ();
                this.ˎ.ॱˎ.setVisibility(0);
                this.ˎ.ˊᐝ();
                this.ˎ.ॱˎ();
                this.ˎ.ʼॱ = 0;
            }
        });
        this.ᐝ.setOnClickListener(this);
        this.ॱˊ.setOnClickListener(this);
        this.ˍ = forumPostDetailHeadCardBean.v_();
        ˊˊ();
    }

    private void ˊˊ() {
        if (this.ॱᐝ != null && this.ॱᐝ.ʻॱ() && this.ॱᐝ.ᐝॱ() && !bsp.ˋ()) {
            this.ˌ.setVisibility(8);
            ˋ(this.ॱᐝ, this.ˍ);
            ॱॱ();
        }
    }

    private void ˋ(Post post, String str) {
        VideoInfo ʽ = post.ʽ();
        if (this.ˋᐝ == null) {
            View inflate = this.ˋˋ.inflate();
            this.ˋᐝ = (VideoPlayer) inflate.findViewById(o.bzd.b.י);
            this.ˎˎ = inflate.findViewById(o.bzd.b.ـॱ);
            ˋ(this.ˋᐝ);
        }
        if (this.ˋᐝ == null) {
            ॱ(-16777216, 1.0f);
            return;
        }
        ॱ(-1, 1.0f);
        LayoutParams layoutParams = (LayoutParams) this.ˋᐝ.getLayoutParams();
        layoutParams.height = (azb.ॱ(this.ˊ) * 9) / 16;
        this.ˋᐝ.setLayoutParams(layoutParams);
        int i = bsy.c.ʻ;
        int i2 = bsy.c.ˊॱ;
        String str2 = (String) this.ˎˎ.getTag(i);
        String str3 = (String) this.ˎˎ.getTag(i2);
        String ˎ = ʽ.ˎ();
        String ˊ = ʽ.ˊ();
        if (!TextUtils.isEmpty(str2) && str2.equals(ˎ)) {
            return;
        }
        if (TextUtils.isEmpty(str3) || !str3.equals(ˊ)) {
            this.ˎˎ.setTag(i, ˎ);
            this.ˎˎ.setTag(i2, ˊ);
            this.ˋᐝ.setVideoBaseInfo(new o.evp.b().ˎ(ʽ.ॱ()).ˊ(ˊ).ˋ(ˎ).ʼ(ʽ.ˋ()).ᐝ(ʽ.ˋ()).ʻ(ʽ.ˏ()).ॱॱ(ʽ.ʻ()).ॱ());
            eqx.ˋ(ContentManager.getInstant().getContext().getResources().getDimensionPixelSize(d.ᐝ), ContentManager.getInstant().getContext().getResources().getDimensionPixelSize(d.ˋ), this.ˋᐝ.ॱॱ(), ˊ);
            this.ˋᐝ.ॱॱ().setContentDescription(str);
        }
    }

    protected void ˋ(VideoPlayer videoPlayer) {
        if (videoPlayer != null) {
            videoPlayer.setBuoyNetChangeCallBack(new VideoPlayer.d(this) {
                final /* synthetic */ bzc ˎ;

                {
                    this.ˎ = r1;
                }

                public void ˏ(Context context) {
                    ((faj) cdb.ॱ(faj.class)).ˊ(context, TransferActivity.class, new Intent(VideoNetChangeDialogAction.ACTION));
                }

                public void ˋ(Context context) {
                    ˏ(context);
                }
            });
            videoPlayer.setBuoyFullScreenMethod(new VideoPlayer.e(this) {
                final /* synthetic */ bzc ˏ;

                {
                    this.ˏ = r1;
                }

                public void ˋ(Context context, String str, int i) {
                    if (doo.ˊ(context)) {
                        cjo fullScreenVideoPlayProtocol = new FullScreenVideoPlayProtocol();
                        Request request = new Request();
                        request.ˎ(str);
                        request.ˊ(i);
                        fullScreenVideoPlayProtocol.ˊ(request);
                        cjm o_cjm = new cjm("fullscreenvideoplay.activity", fullScreenVideoPlayProtocol);
                        o_cjm.ॱ().setAction("");
                        ((faj) cdb.ॱ(faj.class)).ॱ(context, null, o_cjm);
                        return;
                    }
                    ezn.ˊ().ˊ(context.getString(j.ʿ));
                }
            });
        }
    }

    protected void ॱॱ() {
        if (this.ॱᐝ != null && this.ॱᐝ.ʻॱ() && this.ॱᐝ.ᐝॱ()) {
            evr.ˊ().ˋ(ˋˊ());
        }
    }

    private ViewGroup ˋˊ() {
        if (bsp.ˋ()) {
            return null;
        }
        return (ViewGroup) this.ॱॱ.findViewById(o.bzd.b.ˋʽ);
    }

    private void ॱ(int i, float f) {
        ImageView imageView = (ImageView) this.ॱॱ.findViewById(o.bzd.b.ᐝᐝ);
        Drawable drawable = this.ˊ.getResources().getDrawable(e.ᐝॱ);
        ImageView imageView2 = (ImageView) this.ॱॱ.findViewById(o.bzd.b.ॱˍ);
        Drawable drawable2 = this.ˊ.getResources().getDrawable(e.ॱˋ);
        try {
            int ˊ = erq.ˊ(i, f);
            imageView2.setBackground(epo.ॱ(drawable2, ˊ));
            imageView.setBackground(epo.ॱ(drawable, ˊ));
        } catch (Exception e) {
            bqx.ˋ("ForumPostDetailWindow", "updateIconColor error");
        }
    }

    private void ˉ() {
        boolean z = true;
        if (this.ॱᐝ != null && this.ʻॱ != null && this.ʽॱ != null) {
            this.ॱˋ.setVisibility(0);
            this.ˊᐝ = new PopupMenu(this.ˊ, this.ॱˋ);
            this.ˊᐝ.getMenuInflater().inflate(f.ˏ, this.ˊᐝ.getMenu());
            if (this.ʽॱ.ʼ()) {
                this.ˊᐝ.getMenu().findItem(o.bzd.b.ॱـ).setVisible(false);
                this.ˊᐝ.getMenu().findItem(o.bzd.b.ˍ).setVisible(true);
                MenuItem findItem = this.ˊᐝ.getMenu().findItem(o.bzd.b.ꜞ);
                if (this.ॱᐝ.ᐝॱ()) {
                    z = false;
                }
                findItem.setVisible(z);
            } else {
                this.ˊᐝ.getMenu().findItem(o.bzd.b.ॱـ).setVisible(true);
                this.ˊᐝ.getMenu().findItem(o.bzd.b.ˍ).setVisible(false);
                this.ˊᐝ.getMenu().findItem(o.bzd.b.ꜞ).setVisible(false);
            }
            this.ˊᐝ.setOnMenuItemClickListener(new OnMenuItemClickListener(this) {
                final /* synthetic */ bzc ˎ;

                {
                    this.ˎ = r1;
                }

                public boolean onMenuItemClick(MenuItem menuItem) {
                    this.ˎ.ˎ(menuItem);
                    return false;
                }
            });
        }
    }

    private void ˊᐝ() {
        this.ʽ.setVisibility(0);
        this.ˊॱ.setText(this.ˊ.getResources().getQuantityString(g.ॱ, bsv.ॱ(String.valueOf(this.ॱᐝ.ʼ()), 0), new Object[]{Long.valueOf(this.ॱᐝ.ʼ())}));
        ˎ(this.ॱᐝ.ʻ());
        if (this.ʾ == 1) {
            this.ˏॱ.setImageResource(e.ᐝ);
        } else {
            this.ˏॱ.setImageResource(e.ʼ);
        }
        if (this.ˈ == 1) {
            this.ˋॱ.setImageResource(e.ॱॱ);
        } else {
            this.ˋॱ.setImageResource(e.ॱˊ);
        }
    }

    private void ˎ(MenuItem menuItem) {
        boolean z = true;
        int itemId = menuItem.getItemId();
        if (itemId == o.bzd.b.ꜞ) {
            if (bsd.ˊ(this.ˏ)) {
                ezn.ˊ().ˊ(this.ˊ.getString(j.ˎ));
            } else if (ˋ(true)) {
                ˋˋ();
            }
        } else if (itemId == o.bzd.b.ˍ) {
            if (ˋ(false)) {
                ˍ();
            }
        } else if (itemId != o.bzd.b.ॱـ) {
            z = false;
        } else if (ˋ(false)) {
            ˌ();
        }
        if (z) {
            this.ˊᐝ.dismiss();
        }
    }

    private void ˋˋ() {
        Intent intent = new Intent(this.ˊ, TransferActivity.class);
        intent.setAction(OpenPublishPostAction.ACTION_OPEN_FORUM_PUBLISH_POST);
        intent.putExtra("SectionId", this.ʻॱ.ˊ());
        intent.putExtra("DomainId", this.ᐝॱ);
        intent.putExtra("PostId", this.ॱᐝ.ˏ());
        intent.putExtra("PostTitle", this.ॱᐝ.ˊ());
        List ˊ = bzr.ˊ(this.ॱᐝ);
        if (ˊ instanceof Serializable) {
            intent.putExtra("ListPostUnitData", (Serializable) ˊ);
        }
        intent.putExtra("PostModify", true);
        OpenPublishPostAction.registerCall(new OpenPublishPostAction.d(this) {
            final /* synthetic */ bzc ˏ;

            {
                this.ˏ = r1;
            }

            public void ˏ(byd o_byd) {
                if (o_byd != null) {
                    this.ˏ.ˋ(o_byd);
                }
            }
        });
        ((faj) cdb.ॱ(faj.class)).ˎ(this.ˊ, TransferActivity.class, intent, false);
        this.ॱॱ.setVisibility(4);
    }

    private void ˋ(byd o_byd) {
        bqx.ˏ("ForumPostDetailWindow", "publish success，sectionid: " + o_byd.ˊ() + "  tid:" + o_byd.ˏ() + " title:" + o_byd.ॱ() + "  content:" + o_byd.ˎ());
        bzr.ˏ(o_byd.ˋ(), this.ॱᐝ, o_byd.ˎ(), o_byd.ॱ());
        ((bzl) this.ʻ).ˍ();
        ezn.ˊ().ˊ(this.ˊ.getString(j.ˏ));
        this.ॱॱ.setVisibility(0);
    }

    private void ˍ() {
        Intent intent = new Intent(this.ˊ, TransferActivity.class);
        intent.setAction(OpenDeletePostAction.ACTION_OPEN_FORUM_DELETE_POST);
        intent.putExtra("PostId", this.ॱᐝ.ˏ());
        intent.putExtra("DomainId", this.ᐝॱ);
        OpenDeletePostAction.setOnCompleteListener(new fjq<Boolean>(this) {
            final /* synthetic */ bzc ˋ;

            {
                this.ˋ = r1;
            }

            public void onComplete(fjo<Boolean> o_fjo_java_lang_Boolean) {
                Intent intent = new Intent(bsn.ˊ);
                intent.putExtra("cardId", String.valueOf(this.ˋ.ॱᐝ.ˋॱ()));
                ll.ˏ(this.ˋ.ˊ).ˋ(intent);
                this.ˋ.ʼॱ = 2;
                this.ˋ.ॱ(this.ˋ.ˊ);
            }
        });
        ((faj) cdb.ॱ(faj.class)).ˎ(this.ˊ, TransferActivity.class, intent, false);
    }

    private void ˌ() {
        Intent intent = new Intent(this.ˊ, TransferActivity.class);
        intent.setAction(OpenReportPostAction.ACTION_OPEN_FORUM_REPORT_POST);
        intent.putExtra(OpenReportPostAction.BUNDLE_USRTICON, this.ʽॱ.ˎ());
        intent.putExtra(OpenReportPostAction.BUNDLE_USERNICKNAME, this.ʽॱ.ˋ());
        intent.putExtra("PostId", this.ॱᐝ.ˏ());
        intent.putExtra("PostTitle", this.ॱᐝ.ˊ());
        intent.putExtra(OpenReportPostAction.BUNDLE_POSTCONTENT, this.ॱᐝ.ॱ());
        if (this.ॱᐝ.ॱॱ() instanceof Serializable) {
            intent.putExtra(OpenReportPostAction.BUNDLE_POSTPICS, (Serializable) this.ॱᐝ.ॱॱ());
        }
        intent.putExtra("DomainId", this.ᐝॱ);
        ((faj) cdb.ॱ(faj.class)).ˎ(this.ˊ, TransferActivity.class, intent, false);
    }

    private boolean ˋ(boolean z) {
        if (!doo.ˊ(this.ˊ)) {
            ezn.ˊ().ˊ(this.ˊ.getString(bse.ˏ.ˏ()));
            return false;
        } else if (!btb.ˎ(this.ˊ, this.ॱᐝ.ॱˊ(), z, true)) {
            return false;
        } else {
            if (!z) {
                return true;
            }
            ॱ(new a(this) {
                final /* synthetic */ bzc ॱ;

                {
                    this.ॱ = r1;
                }

                public void ˊ(boolean z) {
                    if (z) {
                        this.ॱ.ˋˋ();
                    }
                }
            });
            return false;
        }
    }

    public void D_() {
        ˎˎ();
        super.D_();
    }

    private void ˎˎ() {
        if (this.ॱᐝ != null && this.ˋ != null) {
            this.ˋ.ˊ(new ForumPostDetailWindow$12(this));
        }
    }

    private void ॱ(a aVar) {
        ((cbh) fho.ˏ().ˋ("User").ॱ(cbh.class)).ˎ(this.ˊ, 15, true).ˏ(new b(aVar));
    }
}
